#include "main.h"

void sort(int* array, int len)
{
	for (int i = 1; i < len; ++i)
	{
		int tmp = array[i];
		int j = i - 1;
		while (array[j] > tmp && j >= 0)
		{
			array[j+1] = array[j];
			--j;
		}
		array[j+1] = tmp;
	}
}
